package top.wshape1.shiziapi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.wshape1.shiziapi.project.domain.Member;
import top.wshape1.shiziapi.project.domain.ProjectMembers;

import java.util.List;

/**
 * @author Wshape1
 * @description 针对表【t_project_members】的数据库操作Mapper
 * @Entity top.wshape1.shiziapi.project.domain.ProjectMembers
 * @since 2023-09-12 15:41:54
 */
public interface ProjectMembersMapper extends BaseMapper<ProjectMembers> {

    List<Long> selectParticipatingProjectIds(@Param("pUserId") long pUserId);

    void updateMemberToProject(@Param("projectId") Long projectId, @Param("member") Member member);

    void deleteMemberFromProject(@Param("projectId") Long projectId, @Param("memberId") Long memberId);
}




